﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Surface.Core;
using Microsoft.Surface.Core.Manipulations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Sublimation
{
    class MenuItemSurf : MenuItem
    {
        protected Contact itemContact;
        public Contact ItemContact
        {
            set { itemContact = value; }
            get { return itemContact; }
        }

        public MenuItemSurf(WorldProperties worldProperties, String text, Vector2 position, Vector2 origin)
            : base(worldProperties, text)
        {
            this.position = position;
            this.origin = origin;
            itemStatus = MenuItemStatus.InMenu;
        }

        public bool Contains(Contact aContact)
        {
            return (aContact.X > this.position.X && aContact.X < this.position.X + this.sprite.Width
                 && aContact.Y > this.position.Y && aContact.Y < this.position.Y + this.sprite.Height);
        }
    }
}
